//
//  PrivacyPolicyController.m
//  OnionHome
//
//  Created by fengjie on 2019/10/10.
//  Copyright © 2019 FengJie. All rights reserved.
//

#import "PrivacyPolicyController.h"

@interface PrivacyPolicyController ()

@end

@implementation PrivacyPolicyController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"葱花隐私条款";
    [self createUI];
    
    [self addNavigationItemWithImageNames:@[@"sangedian"] isLeft:NO target:self action:@selector(rightAction) tags:nil];
}
-(void)rightAction{
    
}
-(void)createUI{
    
    UILabel * label1 = UILabel.new;
    label1.textColor = UIColorFromRGB(0x454F44);
    label1.font = BOLDSYSTEMFONT(20);
    label1.text = @"葱花之家隐私政策";
    label1.textAlignment = NSTextAlignmentCenter;
    
    UILabel * label2 = UILabel.new;
    label2.textColor = UIColorFromRGB(0x273323);
    label2.font = SYSTEMFONT(16);
    label2.text = @"更新日期:2019年05月21日";

    UILabel * label3 = UILabel.new;
    label3.textColor = UIColorFromRGB(0x273323);
    label3.font = SYSTEMFONT(16);
    label3.text = @"生效日期:2019年05月21日";

    [self.view addSubview:label1];
    [self.view addSubview:label2];
    [self.view addSubview:label3];

    [label1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.mas_equalTo(0);
        make.top.mas_equalTo(20);
    }];
    
    [label2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(16);
        make.top.mas_equalTo(label1.mas_bottom).offset(20);
    }];
    
    [label3 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(16);
        make.top.mas_equalTo(label2.mas_bottom).offset(16);
    }];
    

}

@end
